package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息管理对象 goods
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long number;

    /** 售卖数量 */
    @Excel(name = "售卖数量")
    private Integer salenum;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private String information;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setSalenum(Integer salenum) 
    {
        this.salenum = salenum;
    }

    public Integer getSalenum() 
    {
        return salenum;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setInformation(String information) 
    {
        this.information = information;
    }

    public String getInformation() 
    {
        return information;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("shopId", getShopId())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("salenum", getSalenum())
            .append("description", getDescription())
            .append("information", getInformation())
            .append("img", getImg())
            .append("status", getStatus())
            .toString();
    }
}
